package com.tc.vms.exception;

/**
 * Created by yonghua.zhang on 2015/12/2.
 */
public final class VmsClientErrorCode {
    public final static int VMS_SYS_ERR_DEFAULT = 0;
    public final static int VMS_SYS_ERR_CANNOT_NEWCONSUMER = VMS_SYS_ERR_DEFAULT + 1;
    public final static int VMS_SYS_ERR_CANNOT_NEWPRODUCER = VMS_SYS_ERR_DEFAULT + 2;
    public final static int VMS_SYS_ERR_FACTORY_NOT_INIT = VMS_SYS_ERR_DEFAULT + 3;
    public final static int VMS_SYS_ERR_PRODUCER_TYPE_NOT_SUPPORT = VMS_SYS_ERR_DEFAULT + 4;
    public final static int VMS_SYS_ERR_PRODUCER_NO_METADATA = VMS_SYS_ERR_DEFAULT + 5;
    public final static int VMS_SYS_ERR_MODIFY_OPTION = VMS_SYS_ERR_DEFAULT + 6;
    public final static int VMS_SYS_ERR_NOT_RUNNING = VMS_SYS_ERR_DEFAULT + 7;
    public final static int VMS_SYS_ERR_CONSUMER_NO_LISTERNER = VMS_SYS_ERR_DEFAULT + 8;
    public final static int VMS_SYS_ERR_CONSUMER_INIT_FAILED = VMS_SYS_ERR_DEFAULT + 9;

    public final static int VMS_SYS_RUNTIME_ERR_DEFAULT = VMS_SYS_ERR_DEFAULT + 50;
    public final static int VMS_SYS_RUNTIME_ERR_UNSUPPORT_INIT = VMS_SYS_RUNTIME_ERR_DEFAULT + 1;
    public final static int VMS_SYS_RUNTIME_ERR_UNSUPPORT_START = VMS_SYS_RUNTIME_ERR_DEFAULT + 2;
    public final static int VMS_SYS_RUNTIME_ERR_UNSUPPORT_SHUTDOWN = VMS_SYS_RUNTIME_ERR_DEFAULT + 3;
    public final static int VMS_SYS_RUNTIME_ERR_UNSUPPORT_KAFKA_MSGMODE = VMS_SYS_RUNTIME_ERR_DEFAULT + 4;
    public final static int VMS_SYS_RUNTIME_ERR_SUSPEND_SERVICE = VMS_SYS_ERR_DEFAULT + 5;

    public final static int KAFKA_ERR_CODE_DEFAULT = 100;

    public final static int RABBITMQ_ERR_CODE_DEFAULT = 200;
    public final static int RABBITMQ_ERR_CODE_CREATE_CONNECTION = RABBITMQ_ERR_CODE_DEFAULT + 1;
    public final static int RABBITMQ_ERR_CODE_NO_ROUTE_KEY = RABBITMQ_ERR_CODE_DEFAULT + 2;
    public final static int RABBITMQ_ERR_CODE_NO_SHARDING = RABBITMQ_ERR_CODE_DEFAULT + 3;

    public final static int ZK_ERR_CODE_DEFAULT = 300;

    public final static int ZK_ERR_CODE_NAMESPACE_NOT_EXISTS = ZK_ERR_CODE_DEFAULT + 1;
    public final static int ZK_ERR_CODE_NO_NODE_EXCEPTION = ZK_ERR_CODE_DEFAULT + 2;
    public final static int ZK_ERR_CODE_NODE_EXISTS_EXCEPTION = ZK_ERR_CODE_DEFAULT + 3;
    public final static int ZK_ERR_CODE_ROUTE_TO_EXCEPTION = ZK_ERR_CODE_DEFAULT + 4;
    public final static int ZK_ERR_CODE_READ_CHANNEL_EXCEPTION = ZK_ERR_CODE_DEFAULT + 5;
    public final static int ZK_ERR_CODE_READ_QUEUE_EXCEPTION = ZK_ERR_CODE_DEFAULT + 6;
    public final static int ZK_ERR_CODE_UNSUPPORTED_CLASS_EXCEPTION = ZK_ERR_CODE_DEFAULT + 6;

}
